package cc.mcggdd.leah.boot.stock.model.form;

import java.io.Serial;
import java.io.Serializable;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import java.time.LocalDateTime;
import java.time.LocalDate;
import java.math.BigDecimal;
import jakarta.validation.constraints.*;

/**
 * 应收表单对象
 *
 * @author 
 * @since 2025-02-08 17:52
 */
@Getter
@Setter
@Schema(description = "应收表单对象")
public class StockReceivableForm implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "主键")
    private Long id;

    @Schema(description = "应收说明")
    @NotBlank(message = "应收说明不能为空")
    @Size(max=128, message="应收说明长度不能超过128个字符")
    private String description;

    @Schema(description = "借出方式")
    @NotBlank(message = "借出方式不能为空")
    @Size(max=128, message="借出方式长度不能超过128个字符")
    private String outPath;

    @Schema(description = "金额")
    @NotNull(message = "金额不能为空")
    private BigDecimal amount;

    @Schema(description = "借出日期")
    @NotNull(message = "借出日期不能为空")
    private LocalDate startDate;

    @Schema(description = "归还日期")
    private LocalDate endDate;

    @Schema(description = "状态（关联字典编码receivable_status）")
    @NotBlank(message = "状态（关联字典编码receivable_status）不能为空")
    @Size(max=5, message="状态（关联字典编码receivable_status）长度不能超过5个字符")
    private String status;


}
